﻿using System.ServiceModel.Description;
using System.ServiceModel.Dispatcher;

namespace RemoteControl.Service.Wcf
{
    /// <summary>
    /// 
    /// Enables the Web programming model for a service.
    /// 
    /// Overrides the class WebHttpBehavior to modify the default query string convert on the Bof L2 Models wcf service.
    /// 
    /// </summary>
    public class RemoteControlWcfServiceWebHttpBehavior : WebHttpBehavior
    {
        /// <summary>
        /// 
        /// Gets the query string converter.
        /// 
        /// </summary>
        /// 
        /// <param name="operationDescription">The service operation.</param>
        /// 
        /// <returns>AKSteel.Model.WindowsService.Wcf.ModelServiceQueryStringConverter instance.</returns>
        protected override QueryStringConverter GetQueryStringConverter(OperationDescription operationDescription)
        {
            return new RemoteControlWcfServiceQueryStringConverter();
        }
    }
}
